/* 首页-顶部css */
.top {
    background-color: #333;
    height: 40px;
    font-size: 12px;
    /* font-weight: 700; */
    color: #b0b0b0;
    /* margin-bottom: 8px; */
}

.top-center {
    display: flex;
    width: 1226px;
    height: 40px;
    margin: 0 auto;
}

.top-center-left {
    position: relative;
    display: flex;
    align-items: center;
    width: 768px;
}

.top-center-right {
    display: flex;
    align-items: center;
    width: 458px;
    justify-content: flex-end;
    /* background-color: blue; */


}

.top-center a {
    display: inline-block;
    font-size: 12px;
    color: #b0b0b0;
    line-height: 40px;
    margin: 15px;
}

.top-center .top-center-left .second-title {
    margin: 15px 0 15px 15px;
}

.top-center .top-center-left .second-title2 {
    margin: 15px 0 15px 15px;
}

.top-center .top-center-left .second-title3 {
    margin: 15px 0 15px 15px;
}

.top-center .top-center-left .second-title4 {
    margin: 15px 0 15px 15px;
}

.top-center a>span {
    margin: 0 .3em;
    color: #424242;
}

.top-center a:hover {
    font-weight: 1000;
    color: rgb(248, 148, 148);
}

.shopping-cart {
    display: inline-flex;
    /* 改用 flex 布局 */
    align-items: center;
    /* 垂直居中 */
    height: 40px;
    padding-left: 25px;
    /* 图片宽度 + 适当间距 */
    background-image: url("../images/index/shoppingCartLogo2.png");
    background-size: 20px 20px;
    /* 调整图片大小 */
    background-repeat: no-repeat;
    background-position: left center;
    /* 图片靠左居中 */
    color: #b0b0b0;
    /* 恢复文字颜色 */
    font-size: 12px;
    /* 保持统一字体大小 */
    margin: 0 15px;
    /* 保持原有外边距 */
}

/* 图标替代方案 */
.icon {
    display: inline-block;
    font-size: 0.6rem;
    margin-right: 10px;
}

.chevron-down::after {
    content: "▼";
}



.top-center-left>.second-title:hover~.submenu {
    display: block;
}

.top-center-left>.second-title2:hover~.submenu2 {
    display: block;
}

.top-center-left>.second-title3:hover~.submenu3 {
    display: block;
}

.top-center-left>.second-title4:hover~.submenu4 {
    display: block;
}

.submenu {
    display: none;
    transition: opacity 0.2s, visibility 0.2s;
    position: absolute;
    /* 消除可能的间隙 */
    margin-top: 0;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
}

.submenu2 {
    display: none;
    transition: opacity 0.2s, visibility 0.2s;
    position: absolute;
    /* 消除可能的间隙 */
    margin-top: 0;
    top: 100%;
    left: auto;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
}

.submenu3 {
    display: none;
    transition: opacity 0.2s, visibility 0.2s;
    position: absolute;
    /* 消除可能的间隙 */
    margin-top: 0;
    top: 100%;
    left: 80px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
}

.submenu4 {
    display: none;
    transition: opacity 0.2s, visibility 0.2s;
    position: absolute;
    /* 消除可能的间隙 */
    margin-top: 0;
    top: 100%;
    left: 150px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
}


.submenu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #050000;
    text-decoration: none;
    transition: background-color 0.2s;
}

.submenu-item:hover {
    background-color: #e6f0ff;
}